import request from '@/utils/request'


// 获取拼团活动列表
export function listPintuan (query) {
    return request({
        url: '/store/promotion/pintuan',
        method: 'get',
        params: query
    })
}
// 新增拼团活动
export function addPintuan (data) {
    return request({
        url: '/store/promotion/pintuan',
        method: 'POST',
        data: data
    })
}
// 修改拼团活动
export function updatePintuan (id, data) {
    return request({
        url: '/store/promotion/pintuan/' + id,
        method: 'put',
        data: data
    })
}
// 关闭 活动
export function closeActivity (id) {
    return request({
        url: `/store/promotion/pintuan/${id}/close`,
        method: 'delete',
    })
}
